-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concept hooks return status response #2492
Concept hooks return status response #2492
Conversation
Benchmark Results
Notes
See Workflow log for more details. |
@sriv |
I guess we can mark the concept execution result as failed like how its done here: https://github.com/getgauge/gauge/blob/master/execution/result/conceptResult.go#L53-L66 I am fairly certain that spec/scenario hooks behave similarly, i.e. mark them as failed when the hooks have failures. |
@sriv
When there is a Concept hook error, the reporters
|
Simulating a 'BeforeConcept' hook results in the following html-report Simulating a 'AfterConcept' hook results in the following html-report |
Thanks for testing this out and the feedback. I believe your feedback is around the placement of the error message? html-report renders concepts as an expandable step with the actual steps listed under it. I guess you would like the errors in the concept hooks should be adjacent to this expandable concept? This should be possible by changing the template for html-report. The default template lies here https://github.com/getgauge/html-report/blob/master/themes/default/views/partials.tmpl This uses golang's stdlib templating and the concept container is here: https://github.com/getgauge/html-report/blob/master/themes/default/views/partials.tmpl#L687-L698 If you want to take a stab at this please feel free. |
@sriv |
Done, merged the corresponding gauge-dotnet and gauge-proto PRs |
Signed-off-by: Piotr Nestorow <[email protected]>
Signed-off-by: Piotr Nestorow <[email protected]>
Signed-off-by: Piotr Nestorow <[email protected]>
Signed-off-by: Piotr Nestorow <[email protected]>
d5a0d8e
to
b2ee83a
Compare
@sriv |
Signed-off-by: Piotr Nestorow <[email protected]>
@PiotrNestor Thank you for contributing to gauge. Your pull request has been labeled as a release candidate 🎉🎉. Merging this PR will trigger a release. Please bump up the version as part of this PR.Instructions to bump the version can found at CONTRIBUTING.md If the CONTRIBUTING.md file does not exist or does not include instructions about bumping up the version, please looks previous commits in git history to see what changes need to be done. |
@sriv
Adding management of concept hooks returning status response.
The related updates are:
For some reason there is no response / result returned by 'e.runner.ExecuteAndGetStatus' in notifyBeforeConcept, notifyAfterConcept even if the 'gauge-dotnet' has been updated to return a result.
grpcRunner executeMessage (that is called by ExecuteAndGetStatus) returns response == nil
What might be the reason for that?
What to check?